<template>
  <a-input-search @search="onSearch" :value="value"></a-input-search>
</template>
<script>
export default {
  name: 'ZTest',
  components: {

  },
  model: {
    prop: 'value',
    event: 'change'
  },
  props: {
    value: {
      required: false,
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  },
  methods: {
    onSearch() {
      this.$emit('change', '1', { test: '我是一个测试' })
    }
  }
}
</script>
